package com.neuedu.controller.registration;

import com.neuedu.service.registration.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@CrossOrigin
public class EmployeeController {
    @Autowired
    private EmployeeService employeeService;
    @RequestMapping("/getRegistDoctorList")
    public List<Map<String,Object>> getRegistDoctorList(
            @RequestParam("deptment_id")String deptmentId,
            @RequestParam("regist_level_id")String registLevelId){
        return employeeService.getRegistDoctorList(deptmentId,registLevelId);
    }
}
